<!--
	This file is part of ELCube.
	ELCube is free software: you can redistribute it and/or modify
	it under the terms of the GNU Affero General Public License as published by
	the Free Software Foundation, either version 3 of the License, or
	(at your option) any later version.
	ELCube is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU Affero General Public License for more details.
	You should have received a copy of the GNU Affero General Public License
	along with ELCube.  If not, see <https://www.gnu.org/licenses/>.
-->
<template>
  <nk-def-card>
    <nk-form :col="1" :edit="editMode">
      <nk-form-item title="监听EL" :width="140">
        {{def.watchSpEL}}
        <nk-sp-el-editor slot="edit" v-model="def.watchSpEL" style="max-width:300px;" placeholder="结果发生改变时将执行EL"></nk-sp-el-editor>
      </nk-form-item>
      <nk-form-item title="执行EL" :width="140">
        {{def.collectSpEL}}
        <nk-sp-el-editor slot="edit" v-model="def.collectSpEL" style="max-width:300px;"></nk-sp-el-editor>
      </nk-form-item>
      <nk-form-item title="显示模版" :width="140">
        <pre>{{def.vueTemplate}}</pre>
        <a-textarea slot="edit" v-model="def.vueTemplate" size="small" placeholder="Vue Template"></a-textarea>
      </nk-form-item>
      <nk-form-item title="允许查看源数据" :width="140">
        {{def.allowViewSource}}
        <a-switch slot="edit" v-model="def.allowViewSource" size="small"></a-switch>
      </nk-form-item>
    </nk-form>
  </nk-def-card>
</template>

<script>
    import MixinDef from "MixinDef";

    export default {
  mixins:[new MixinDef({routes:[]})],
  computed:{
  },
  created() {
  }
}
</script>

<style scoped>

</style>